#include "listitem.h"
#include <QFileInfo>

ListItem::ListItem(QString f, QListWidget* parent = 0)
        : QListWidgetItem(QIcon(f),QFileInfo(f).baseName().toUpper(), parent, 0)
{
    filename = f;//stores the file name
}

QString ListItem::getFileName()
{
    return QString(filename);
}
